<?php 
    class ArticleTableModel extends Table
	{
		function __construct()
		{
			parent::__construct('bg_articles');
		}
		
		function addArticle(Article $article)
		{
			$data=array('article_title' => $article->_article_title,'article_description' => $article->_article_description,
						'article_detail' => $article->_article_detail,'article_image' => $article->_article_image,'article_cat' => $article->_article_cat,
						'article_author_id' => $article->_article_author_id,'article_author_name' => $article->_article_author_name,'article_create_date' => $article->_article_create_date,
						'article_update_date' => $article->_article_update_date,'article_feature' => $article->_article_feature,'article_status' => $article->_article_status,
						'article_position' => $article->_article_position,'article_topic_id' => $article->_article_topic_id,'article_view' => $article->_article_view,
						'article_alias' => $article->_article_alias,'article_map' => $article->_article_map,'article_supplier_id' => $article->_article_supplier_id,
						'article_meta_title' => $article->_article_meta_title,'article_meta_description' => $article->_article_meta_description,'article_meta_keyword' => $article->_article_meta_keyword);
			return $this->insert($data);
		}
	}
?>